package ${feignImplPackage};

import com.douya.common.pojo.dto.PagerDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import ${feignPackage}.${class}Feign;
import ${dtoPackage}.${class}DTO;
import ${voPackage}.${class}VO;
import ${servicePackage}.${class}Service;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：${remarks}内部接口实现
 *
 * @author ${author}
 * @date ${date}
 */
@Slf4j
@RestController
public class ${class}FeignImpl implements ${class}Feign {

    @Resource
    ${class}Service m${class}Service;

    @Override
    public IPage${r'<'}${class}VO> page(PagerDTO pagerDTO) {
        return m${class}Service.page(pagerDTO);
    }

    @Override
    public ${class}VO findById(Long id) {
        return m${class}Service.findById(id);
    }

    @Override
    public void insert(${class}DTO ${name}DTO) {
        m${class}Service.insert(${name}DTO);
    }

    @Override
    public void delete(Long id) {
        m${class}Service.delete(id);
    }
}
